#include <iostream>
#include <unistd.h>
#include <signal.h>
using namespace std;

void my_handler(int signum){
    cout << "my_handler!!" << endl;
}


int main(){

    signal(SIGINT, my_handler);
    while(1){
        cout << "hello world" << endl;
        sleep(1);
    }

}